package cn.csc.module.product.api.sku.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.math.BigInteger;

@Data
public class SkuDTO {

    /**
     * sku信息Id
     */
    @ApiModelProperty(value = "sku id", required = true)
    @NotNull(message = "sku id不能为空")
    private BigInteger id;

    @ApiModelProperty(value = "SPU id", required = true)
    @NotNull(message = "SPU id不能为空")
    private BigInteger spuId;

    @ApiModelProperty(value = "sku名称")
    private String skuName;

    @ApiModelProperty(value = "多个销售属性值id逗号分隔")
    private String attrs;

    @ApiModelProperty(value = "sku图片")
    private String imgUrl;

    @ApiModelProperty(value = "售价，整数方式保存", required = true)
    @NotNull(message = "售价，整数方式保存不能为空")
    private BigDecimal priceFee;

    @ApiModelProperty(value = "市场价，整数方式保存", required = true)
    @NotNull(message = "市场价，整数方式保存不能为空")
    private BigDecimal marketPriceFee;

    @ApiModelProperty(value = "经销商价格", required = true)
    private BigDecimal shopPriceFee;

    @ApiModelProperty(value = "商品编码")
    private String partyCode;

    @ApiModelProperty(value = "商品条形码")
    private String modelId;

    @ApiModelProperty(value = "商品重量")
    private BigDecimal weight;

    @ApiModelProperty(value = "商品体积")
    private BigDecimal volume;

    @ApiModelProperty(value = "状态 1:enable, 0:disable, -1:deleted", required = true)
    @NotNull(message = "状态 1:enable, 0:disable, -1:deleted不能为空")
    private Byte status;
}
